package pl.balon.gwt.diagrams.client.connection.pointwidget;


import com.google.gwt.event.shared.GwtEvent;

public class MoveablePointWidgetCreateEvent extends GwtEvent<MoveablePointWidgetCreateEventHandler>{
	
	private MoveablePointWidget movePointAction;
	public MoveablePointWidgetCreateEvent(MoveablePointWidget movePointAction) {
		this.movePointAction = movePointAction;
	}
	
	public MoveablePointWidget getMovePointAction() {
		return this.movePointAction;
	}

	
	@Override
	public String toString() {
		return "The MoveableWidget event: Creation";
	}
	
	  
	 
   private static final GwtEvent.Type<MoveablePointWidgetCreateEventHandler> TYPE = new GwtEvent.Type<MoveablePointWidgetCreateEventHandler>() {
	   @Override
	    public String toString() {
	      return "Moveable Widget Event Type";
	    }
   };
 
   public static GwtEvent.Type<MoveablePointWidgetCreateEventHandler> getType(){
      return TYPE;
   }
   
	@Override
   protected void dispatch(MoveablePointWidgetCreateEventHandler handler){
		handler.onCreatePoint(this);
   }
 
   @Override
   public GwtEvent.Type<MoveablePointWidgetCreateEventHandler> getAssociatedType(){
      return TYPE;
   }

}
